package com.xkcyy.nacos.springcloud.nacos.userclient.controller;

import com.xkcyy.nacos.springcloud.nacos.userclient.feign.User1Feign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * TestController
 *
 * @author xkcyy
 * @date 2022/5/31
 **/
@RestController
public class TestController {
    @Autowired
    User1Feign user1Feign;

    @GetMapping("/test")
    public Object test(){
        HashMap<String,Object> map = new HashMap<>(4);
        map.put("name",user1Feign.getName());
        return map;
    }
}
